//
//  BQYLHeadView.m
//  BeeQuick
//
//  Created by 杨雷 on 2016/11/21.
//  Copyright © 2016年 six_group. All rights reserved.
//

#import "BQYLHeadView.h"

@interface BQYLHeadView ()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *priceLabel;

@property (weak, nonatomic) IBOutlet UILabel *market_price;


@end




@implementation BQYLHeadView

+ (instancetype)headView
{
    return [[[NSBundle mainBundle]loadNibNamed:@"BQYLHeadView" owner:nil options:nil]lastObject];
}


- (void)setModel:(BQHomeGoodModel *)model
{
    _model = model;
    
    self.nameLabel.text = model.name;
    
    self.priceLabel.text = [NSString stringWithFormat:@"$%@",model.price];
    
    self.market_price.text = [NSString stringWithFormat:@"$%@",model.market_price];
    
}

- (void)awakeFromNib
{
    [super awakeFromNib];
    
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
